import fly from './http'
import Api from './Api'
import Home from './home' //首页所有接口

// import * as home from './home'
// import * as wallet from './wallet'
// import * as task from './task'

import Vue from 'vue'

//api返回结果，正确的状态
export const STATUS_OK = '10000'

// 暴露一下她的基本路径
export const BASEURL = fly.config.baseURL

const api = {
    STATUS_OK: STATUS_OK,
    BASEURL: BASEURL,
    ...Api,
    ...Home,
}


// 挂载

Vue.prototype.$api = api
export default api